#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QImage>
#include <QTreeWidgetItem>
#include <QtGui>
#include <QtCore>
#include "mainview.h"

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    void animRoom(bool show);

public slots:
    void setLabelBackground(QTreeWidgetItem *item, int column);
    void setLabelFrame();
    void resizeDockDispositivos(Qt::DockWidgetArea *area);

private:
    Ui::MainWindow *ui;
    QImage *background;
    QString *path;
    QPropertyAnimation *anim, *anim2, *anim3, *room_hide;
    MainView *view;

private slots:
    void on_splitter_4_splitterMoved(int pos, int index);
    void on_actionSkin_1_triggered();
    void on_actionDispositivos_triggered();
    void on_actionExit_triggered();
    void on_actionModulos_triggered();
};

#endif // MAINWINDOW_H
